package com.method;

/*
有返回值的方法
*/
public class Demo07 {
    public static void main(String[] args) {
        //resout接收sum()的返回值
        int resout = sum(3, 2);
        System.out.println(resout);
    }

    //求和方法，有返回值的，int类型
    public static int sum(int a, int b) {
        int resout = a + b;
        return resout;
    }
}
